import request from "@/apis/request.js";
import url from "@/apis/urlconst.js";

export const captcha = (email) => {
    return request({
        url: url.v1.captcha_url.url + email,
        method: url.v1.captcha_url.method,
    });
};

export const register = (data) => {
    return request({
        url: url.v1.register_url.url,
        method: url.v1.register_url.method,
        data,
    });
};